<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>双向绑定 input v-model</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="div">
    <input type="text" v-model="name"/>
    <p v-text="name"></p>
</div>
</body>
<script>

    let vm = new Vue({
        el: '#div',
        data: {
            name: ``
        }
    });
</script>
</html>